const express = require('express');
const app = express();
const cors = require('cors');
const memberRoutes = require('./routes/member.routes');

// 中间件
app.use(cors());
app.use(express.json());

// 注册路由
app.use('/api', memberRoutes);

module.exports = app;